/**
 * @file main.c
 * @brief ucgui
 * @author 王晓荣
 * @version 
 * @date 2014-03-22
 */

#include "lcd_ssd1289.h" 
#include "gui.h"
#include "delay.h"

int main(void)
{ 
    uint16_t i;
	GUI_Init(); 
    
    GUI_DispChars('*', 54);     
    for(i = 0; i < 240; i += 8)   
    {        
        GUI_DispCharAt('*', 312, i);
        GUI_DispCharAt('*', 1,   i);
    } 
    GUI_DispChars('*', 52);    /**<写一圈框*/
    
    GUI_SetBkColor(GUI_BLUE);
    GUI_SetColor(GUI_RED); 
    GUI_SetFont(&GUI_Font32B_ASCII);
    GUI_DispStringAt("Hello world!",50,50);		
	
	while(1)
 	{
        for(i = 0; i < 10000; i++)
        {
            GUI_DispDecAt(i, 100,100,4);  /**<十进制数,位置，位数*/
            delay_ms(100);
        } 		
 	}
}

